import { createRouter, createWebHistory } from 'vue-router';

// 路由定义
const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/home/index.vue'), // 懒加载组件
  },
  {
    path: '/edit',
    name: 'edit',
    component: () => import('@/views/edit/index.vue'), // 懒加载组件
  },
  {
    path: '/contract',
    name: 'contract',
    component: () => import('@/views/contract.vue'), // 懒加载组件
  },
  {
    path: '/',
    name: 'feature',
    component: () => import('@/views/feature.vue'), // 懒加载组件
  },
  {
    path: '/',
    name: 'mine',
    component: () => import('@/views/mine.vue'), // 懒加载组件
  },

];

// 创建路由实例
const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
